package com.service;

import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class BroadCastReceiver_B extends BroadcastReceiver{

	@Override
	public void onReceive(Context context, Intent intent) {
		String action = intent.getAction();
		
		if(action.equals("android.intent.action.BOOT_COMPLETED"));
		{
			Log.e("BackgroundService", "dd");
			ComponentName comp = new ComponentName(context.getPackageName(), BackgroundService.class.getName());
			context.startService(new Intent().setComponent(comp));
		}
		
	}
	

}
